package tmall.secondkill.common;

import lombok.Data;

/**
 * @author wei
 * @version 1.0.0
 * @description
 * @createTime 2022年01月23日 10:56:00
 */
public enum OrderStatus {
    PLACED(1, "已下单"),
    UNPAID(2, "待支付"),
    PAID(3, "已支付"),
    CONFIRMING(4, "确认中"),
    CONFIRMED(5, "已确认"),
    SHIPPED(6, "已发货"),
    RECEIVED(7, "已签收"),
    FINISHED(8, "已完成"),
    CLOSED(9, "已关闭");

    private final int code;
    private final String desc;

    OrderStatus(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
